package com.tuling.annotation;

import java.lang.annotation.*;

/**
 * 解决幂等性实现自定义注解
 */
@Target(ElementType.METHOD)
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface RepeatSubmit {
    enum Type {PARAM,TOKEN};

    Type limitType() default Type.PARAM;

    long lockTime() default 5;
}
